[XEND] Daemonise vncviewer when it is spawned from xend.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 8 Aug 2006 09:21:51 +0000 (10:21 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 8 Aug 2006 09:21:51 +0000 (10:21 +0100)
commit70858a054e96282aad6372212527bf512f2ff74a
treec3b121bb8a600790d2d601fad467f91955d3a424
parentbaa7c435ce647615853c5b67cb543408e1de6f2e
[XEND] Daemonise vncviewer when it is spawned from xend.

There are various reasons it should be daemonized, but the particular
problem we hit was that YaST called "xm create" and waited on output on
stdout/stderr; xm then spawned vncviewer (which never closed its
inherited stdout and stderr); xm then would exit, but YaST still had
open file descriptors, and therefore waited forever.  It would be
possible to work around in YaST, but it seemed cleaner to daemonize
vncviewer.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
tools/python/xen/xm/create.py